package com.joysuch.wwyt.bp.bean.contractor;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.core.bean.BaseAttachmentBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDate;

/**
 * @Author ZhangDong
 * @Date 2020/7/13 11:26
 */
@Data
public class BpContractorStaffBean {

    @ApiModelProperty("id-修改时传值")
    private Long id;
    @ApiModelProperty("承包商人员编号-查询数据时用")
    private String code;
    @ApiModelProperty("姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;
    @ApiModelProperty("曾用名")
    private String oldName;
    @ApiModelProperty("身份(1.员工; 2.管理人员)")
    @NotNull(message = "请选择身份")
    private Integer identity;
    @ApiModelProperty("身份(1.员工; 2.管理人员)")
    private String identityName;
    @ApiModelProperty("工作单位-承包商id")
    @NotNull(message = "请选择工作单位")
    private Long contractorId;
    @ApiModelProperty("工作单位-承包商")
    private String contractorName;
    @ApiModelProperty("性别")
    private String gender;
    @ApiModelProperty("证件类型")
    private Long idCardType;
    @ApiModelProperty("证件类型名称")
    private String idCardTypeName;
    @ApiModelProperty("联系电话")
    private String telephone;
    @ApiModelProperty("学历")
    private Long education;
    @ApiModelProperty("学历")
    private String educationName;
    @ApiModelProperty("户籍所在地")
    private String censusRegister;
    @ApiModelProperty("通讯地址")
    private String address;
    @ApiModelProperty("参加工作时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate joinWorkDate;
    @ApiModelProperty("证件照")
    private BaseAttachmentBean idCardImg;
    @ApiModelProperty("帽子")
    private BaseAttachmentBean cap;
    @ApiModelProperty("民族id")
    private Long nation;
    @ApiModelProperty("民族")
    private String nationName;
    @ApiModelProperty("证件号码")
    private String idCardNo;
    @ApiModelProperty("健康状况")
    private Long healthStatus;
    @ApiModelProperty("健康状况")
    private String healthStatusName;
    @ApiModelProperty("专业")
    private String major;
    @ApiModelProperty("从业所在地")
    private String workAt;
    @ApiModelProperty("邮编")
    private String postcode;
    @ApiModelProperty("职称/技能等级")
    private String title;


    //定位卡号
    private String sn;
    //门禁卡号
    private String cardNumber;
    //头像图标
    private String facePic;
    //外部链接URL
    private String refUrl;
}
